<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>ESP BAT Protection Board </title>
</head>

<body>
  <div id="app" class="flex" style="height: 100vh; width: 100vw; padding: 0;"></div>
  <script type="module" src="/src/main.ts"></script>
</body>

<script>
  const link = document.querySelector("link[rel~='icon']");
  window.tools_icon = btoa('<svg t="1737697824677" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5307" width="48" height="48"><path d="M870.1 64.37H153.9c-24.72 0-44.76 20.04-44.76 44.76v805.73c0 24.72 20.04 44.76 44.76 44.76h716.2c24.72 0 44.76-20.04 44.76-44.76V109.14c0-24.73-20.04-44.77-44.76-44.77zM153.9 243.42h44.76v223.81H153.9V243.42z m716.2 671.44H153.9V512h44.76c24.72 0 44.76-20.04 44.76-44.76V243.42c0-24.72-20.04-44.76-44.76-44.76H153.9v-89.53h716.2v805.73z" p-id="5308"></path><path d="M691.05 556.76h89.53c24.72 0 44.76-20.04 44.76-44.76V198.66c0-24.72-20.04-44.76-44.76-44.76h-89.53c-24.72 0-44.76 20.04-44.76 44.76V512c0 24.72 20.04 44.76 44.76 44.76z m0-358.1h89.53V512h-89.53V198.66zM332.95 512h223.82c24.72 0 44.76-20.04 44.76-44.76V243.42c0-24.72-20.04-44.76-44.76-44.76H332.95c-24.72 0-44.76 20.04-44.76 44.76v223.81c0 24.73 20.04 44.77 44.76 44.77z m0-268.58h223.81v223.81H332.95V243.42zM623.91 735.81H355.33c-12.36 0-22.38 10.02-22.38 22.38s10.02 22.38 22.38 22.38h268.58c12.36 0 22.38-10.02 22.38-22.38 0-12.35-10.02-22.38-22.38-22.38zM623.91 825.34H355.33c-12.36 0-22.38 10.02-22.38 22.38s10.02 22.38 22.38 22.38h268.58c12.36 0 22.38-10.02 22.38-22.38s-10.02-22.38-22.38-22.38zM265.81 735.81h-44.76c-12.36 0-22.38 10.02-22.38 22.38s10.02 22.38 22.38 22.38h44.76c12.36 0 22.38-10.02 22.38-22.38 0-12.35-10.02-22.38-22.38-22.38zM332.95 668.67c0 12.36 10.02 22.38 22.38 22.38h268.58c12.36 0 22.38-10.02 22.38-22.38s-10.02-22.38-22.38-22.38H355.33c-12.36 0-22.38 10.02-22.38 22.38zM198.66 668.67c0 12.36 10.02 22.38 22.38 22.38h44.76c12.36 0 22.38-10.02 22.38-22.38s-10.02-22.38-22.38-22.38h-44.76c-12.36 0-22.38 10.02-22.38 22.38zM265.81 825.34h-44.76c-12.36 0-22.38 10.02-22.38 22.38s10.02 22.38 22.38 22.38h44.76c12.36 0 22.38-10.02 22.38-22.38s-10.02-22.38-22.38-22.38zM713.43 601.53c-12.36 0-22.38 10.02-22.38 22.38V758.2c0 12.36 10.02 22.38 22.38 22.38s22.38-10.02 22.38-22.38V623.91c0-12.36-10.02-22.38-22.38-22.38zM802.96 601.53c-12.36 0-22.38 10.02-22.38 22.38V758.2c0 12.36 10.02 22.38 22.38 22.38s22.38-10.02 22.38-22.38V623.91c0-12.36-10.02-22.38-22.38-22.38z" p-id="5309"></path><path d="M713.43 847.72m-22.38 0a22.38 22.38 0 1 0 44.76 0 22.38 22.38 0 1 0-44.76 0Z" p-id="5310"></path><path d="M355.33 176.28m-22.38 0a22.38 22.38 0 1 0 44.76 0 22.38 22.38 0 1 0-44.76 0Z" p-id="5311"></path><path d="M346.772314 555.046555a22.38 22.38 0 1 0 17.128911-41.352848 22.38 22.38 0 1 0-17.128911 41.352848Z" p-id="5312"></path><path d="M423.098497 539.494599a22.38 22.38 0 1 0 43.562001-10.286382 22.38 22.38 0 1 0-43.562001 10.286382Z" p-id="5313"></path><path d="M525.821386 555.043166a22.38 22.38 0 1 0 17.128911-41.352848 22.38 22.38 0 1 0-17.128911 41.352848Z" p-id="5314"></path><path d="M802.96 847.72m-22.38 0a22.38 22.38 0 1 0 44.76 0 22.38 22.38 0 1 0-44.76 0Z" p-id="5315"></path><path d="M444.86 176.28m-22.38 0a22.38 22.38 0 1 0 44.76 0 22.38 22.38 0 1 0-44.76 0Z" p-id="5316"></path><path d="M534.38 176.28m-22.38 0a22.38 22.38 0 1 0 44.76 0 22.38 22.38 0 1 0-44.76 0Z" p-id="5317"></path><path d="M735.81 243.42c-12.36 0-22.38 10.02-22.38 22.38v179.05c0 12.36 10.02 22.38 22.38 22.38s22.38-10.02 22.38-22.38V265.81c0-12.37-10.02-22.39-22.38-22.39z" p-id="5318"></path></svg>');
  link.href = "data:image/svg+xml;base64," + tools_icon;
  window.onload = function () {
    history.replaceState(
      null,
      null,
      window.location.href.replace("/index", "")
    );
    if (localStorage.getItem("new_md5")) {
      let last_md5 = localStorage.getItem("md5");
      let cur_md5 = localStorage.getItem("new_md5");
      if (last_md5 != cur_md5) {
        localStorage.setItem("md5", localStorage.getItem("new_md5"));
        window.newVersion = true;
      }
    }
    // 缓存页面内容
    var currentPageContent = document.documentElement.outerHTML;
    localStorage.setItem("cachedPage", currentPageContent);
  };
</script>

</html>